package com.neusoft.tyut.elm.controller.business;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.neusoft.tyut.elm.service.IBusinessService;
import com.neusoft.tyut.elm.service.impl.BusinessServiceImpl;

@WebServlet("/b/list.do")
public class BusinessListServlet extends HttpServlet {	
	private  final IBusinessService businessService =new BusinessServiceImpl();		
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
//		提取表单数据
//		封装表单数据
//		调用Service完成具体的业务
		String string =  businessService.findAll();
		
		response.getWriter().append(string).flush();
	}

}
